package kuangstudy;

/**
 * @author:李雄
 * @create:2022-07-05 12:20
 */
public class TestThread2 implements Runnable{

    @Override
    public void run() {
        for(int i=0;i<100;i++){
            System.out.println("实现Runnable接口实现多线程"+i);
        }
    }

    public static void main(String[] args) {
        TestThread2 test2 = new TestThread2();
        Thread thread = new Thread(test2);
        thread.start();
        for(int i=0;i<1000;i++){
            System.out.println("主线程"+i);
        }
    }
}
